* {
  margin: 0;
}

html {
  background-color: #f8f8f8;
  width: 100vw;
  overflow-x: hidden;
}

header {
  height: 7%;
  max-height: 120px;
  line-height: 100%;
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 50%;
  text-align: right;
}

.ifm {
  padding: 5%;
  height: 17%;
  background-color: #7547c3;
  overflow: hidden;
  white-space: nowrap;
}

.ifm .avatar {
  box-sizing: border-box;
  height: 100%;
  border: solid 4px #fff;
  float: left;
}

.ifm .detail {
  display: inline-block;
  padding: 10px 15px;
  color: #fff;
  line-height: 200%;
  font-size: medium;
  opacity: 0.9;
}

.ifm .detail span {
  font-size: small;
  margin-left: 10px;
}

.content {
  padding: 5%;
  padding-bottom: 40px;
  margin-bottom: 120px;
  background-color: #fff;
}

.content >* {
  margin-bottom: 20px;
}

.content h1 {
  color: #bbb;
  font-size: medium;
  margin-bottom: 0;
}

.content time {
  font-weight: bolder;
  display: block;
}

.content time #date {
  font-size: x-large;
}

.content time #time {
  font-size: xx-large;
  margin-left: 0.3rem;
}

.content p {
  font-size: small;
}

.content .outsidetime span {
  color: gold;
}

.content .code-container {
  text-align: center;
}

.content .code-container .code-box {
  display: inline-block;
  padding: 15vw;
  border: solid 1px #ddd;
  margin-bottom: 15px;
  position: relative;
}

.content .code-container .code-box img {
  width: 36vw;
}

.code-box:before {
  content: '研究生';
  display: block;
  background-color: #7547c3;
  width: 32vw;
  height: 9vw;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  font-size: medium;
  line-height: 9vw;
}

.code-box:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  top: 0;
  left: 32vw;
  border: solid 4.5vw transparent;
  border-top: solid 9vw #7547c3;
  border-left: solid 0 transparent;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 8%;
  min-height: 60px;
  padding: 10px 0;
  display: flex;
  justify-content: space-around;
  background-color: #fff;
  border-top: solid 1px #ddd;
}

footer >div {
  display: flex;
  justify-content: space-evenly;
  flex-direction: column;
  color: #969696;
  font-size: small;
  text-align: center;
}

footer >div img {
  margin: 0 auto;
  width: 8vw;
}